package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.TrackStat;
import com.atguigu.tingshu.vo.album.TrackStatVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TrackStatMapper extends BaseMapper<TrackStat> {


    /**
     * 更新声音统计
     * @param trackId
     * @param statType
     * @param count
     */
    void updateTrackStat(@Param("trackId") Long trackId, @Param("statType") String statType, @Param("count") Integer count);

    /**
     * 获取声音统计信息
     * @param trackId
     * @return
     */
    TrackStatVo selectTrackStatVoById(@Param("trackId") Long trackId);
}
